<el-dialog class="dialogStyleBase" :title="mixinEdit_editTitle" width="500px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>
    <div v-loading="mixinEdit_loading">
        <el-form ref="editForm" :model="form" label-width="100px" label-position="left">

            <LayoutCell>
                <el-form-item label="分类名称" prop="name" :rules="{ required: true, message: '分类名称 不能为空'}">
                    <el-input v-model="form.name" maxlength="20" show-word-limit></el-input>
                </el-form-item>

                <el-form-item label="分类图标" prop="thumb" :rules="{ required: true, message: '分类图标 不能为空'}">
                    <SelectImageRadio v-model="form.thumb"
                        :apiConfig="$vFN.Tools.getAppGlobalData('selectResourcesImageApiConfig.resourcesImageBox', appWindow)"
                        @change="validate" :appWindow="appWindow"></SelectImageRadio>
                </el-form-item>

                <el-form-item label="是否启用" prop="status">
                    <el-switch :inactive-value="0" :active-value="1" v-model="form.status">
                    </el-switch>
                </el-form-item>
            </LayoutCell>

        </el-form>
    </div>
    <div slot="footer">
        <el-row>
            <el-col :span="12" style="text-align: left;">
                <el-button @click="mixinEdit_resetForm('editForm')">重 置</el-button>
            </el-col>
            <el-col :span="12">
                <el-button @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
                <el-button type="primary" @click="mixinEdit_editFormSubmit({model:'form',ref:'editForm'})">确
                    定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>